Dynomotion

Group: DynoMotion Message: 15235 From: ARIEF SUSANTO Date: 12/13/2017
Subject: Re: G Code Error...Aborted
On Dec 14, 2017 2:41 PM, "ARIEF SUSANTO" <sst.arief@...> wrote:

Hi,
I use dynomotion for replace the CNC controller of my old cnc Lathe.
I still use the old servo motor and the spindle driver.
From this forum, I learn a lot of things, and do some research until I can move the X and Z axis and also the spindle. All is working in manual mode, means it work well with click the Jog button.

But I got problem when try to move with program, with G code. Also when I type, for example G0 X10 and click send on the lower screen of Kmotioncnc.
There is message "G Code Error GCode Abborted", here attached the picture.

Anyone ever got same problem in this forum, please share here, what can be the cause of this error.

Thank you in advance..

ASM

Group: DynoMotion Message: 15243 From: Tom Kerekes Date: 12/14/2017
Subject: Re: G Code Error...Aborted
Hi ASM,

I don't see any attached picture.

Are all the axes defined in your Coordinate System Enabled?

What do you have as your DefineCoordSystem() in your Initialization C Program.

Regards
TK



On 12/13/2017 11:44 PM, ARIEF SUSANTO sst.arief@... [DynoMotion] wrote:
 
On Dec 14, 2017 2:41 PM, "ARIEF SUSANTO" <sst.arief@...> wrote:

Hi,
I use dynomotion for replace the CNC controller of my old cnc Lathe.
I still use the old servo motor and the spindle driver.
From this forum, I learn a lot of things, and do some research until I can move the X and Z axis and also the spindle. All is working in manual mode, means it work well with click the Jog button.

But I got problem when try to move with program, with G code. Also when I type, for example G0 X10 and click send on the lower screen of Kmotioncnc.
There is message "G Code Error GCode Abborted", here attached the picture.

Anyone ever got same problem in this forum, please share here, what can be the cause of this error.

Thank you in advance..

ASM


Group: DynoMotion Message: 15248 From: ARIEF SUSANTO Date: 12/14/2017
Subject: Re: G Code Error...Aborted
Attachments :
    Hi TK,

    Thank you for response..
    The configuration of Dynomotion that I use for my old lathe is : KFLOP+KANALOG+KONNECT.
    In initialization C program, the axis X on Channel 0, the axis Z on channel 2, and channel 3 for the spindle. Here attached the initialization file.
    I do some modification on the C program, to make the machine able to be operated by external button for do axis jog, spindle jog, and also with MPG.
    Probably I do some mistake on C program, sorry Im not a real programmer😁 . But so far with this initialization C program, all the axis can be move.
    Only the error appear when test with G code..

    Very appreciate for your assist..

    Regards,

    ASM


    2017-12-15 5:47 GMT+07:00 Tom Kerekes tk@... [DynoMotion] <DynoMotion@yahoogroups.com>:
     

    Hi ASM,

    I don't see any attached picture.

    Are all the axes defined in your Coordinate System Enabled?

    What do you have as your DefineCoordSystem() in your Initialization C Program.

    Regards
    TK





    On 12/13/2017 11:44 PM, ARIEF SUSANTO sst.arief@... [DynoMotion] wrote:
     
    On Dec 14, 2017 2:41 PM, "ARIEF SUSANTO" <sst.arief@...> wrote:

    Hi,
    I use dynomotion for replace the CNC controller of my old cnc Lathe.
    I still use the old servo motor and the spindle driver.
    From this forum, I learn a lot of things, and do some research until I can move the X and Z axis and also the spindle. All is working in manual mode, means it work well with click the Jog button.

    But I got problem when try to move with program, with G code. Also when I type, for example G0 X10 and click send on the lower screen of Kmotioncnc.
    There is message "G Code Error GCode Abborted", here attached the picture.

    Anyone ever got same problem in this forum, please share here, what can be the cause of this error.

    Thank you in advance..

    ASM



    Group: DynoMotion Message: 15250 From: Tom Kerekes Date: 12/15/2017
    Subject: Re: G Code Error...Aborted
    Hi ASM,

    The Spindle should not normally be part of the coordinated motion system.  Also because you are only writing to a DAC to control it you should not enable the Axis as a Servo.  The encoder position will be maintained whether the Axis is enabled or not.

    so change:

        EnableAxis(3);

        DefineCoordSystem(0,-1,2,3);

    to:

        DefineCoordSystem(0,-1,2,-1);

    On a minor note it is usually best to have positive P Gain.  Make your P gain positive and if necessary change the OutputGain to the opposite sign (-1 or +1).

    Instead of photos of screens you can capture the screen image by alt-printscreen.  Then paste into Paint.exe and save as a *.png file.

    HTH
    Regards
    TK




    On 12/14/2017 5:31 PM, ARIEF SUSANTO sst.arief@... [DynoMotion] wrote:
     
    Hi TK,

    Thank you for response..
    The configuration of Dynomotion that I use for my old lathe is : KFLOP+KANALOG+KONNECT.
    In initialization C program, the axis X on Channel 0, the axis Z on channel 2, and channel 3 for the spindle. Here attached the initialization file.
    I do some modification on the C program, to make the machine able to be operated by external button for do axis jog, spindle jog, and also with MPG.
    Probably I do some mistake on C program, sorry Im not a real programmer😁 . But so far with this initialization C program, all the axis can be move.
    Only the error appear when test with G code..

    Very appreciate for your assist..

    Regards,

    ASM


    2017-12-15 5:47 GMT+07:00 Tom Kerekes tk@... [DynoMotion] <DynoMotion@yahoogroups.com>:
     

    Hi ASM,

    I don't see any attached picture.

    Are all the axes defined in your Coordinate System Enabled?

    What do you have as your DefineCoordSystem() in your Initialization C Program.

    Regards
    TK





    On 12/13/2017 11:44 PM, ARIEF SUSANTO sst.arief@... [DynoMotion] wrote:
     
    On Dec 14, 2017 2:41 PM, "ARIEF SUSANTO" <sst.arief@...> wrote:

    Hi,
    I use dynomotion for replace the CNC controller of my old cnc Lathe.
    I still use the old servo motor and the spindle driver.
    From this forum, I learn a lot of things, and do some research until I can move the X and Z axis and also the spindle. All is working in manual mode, means it work well with click the Jog button.

    But I got problem when try to move with program, with G code. Also when I type, for example G0 X10 and click send on the lower screen of Kmotioncnc.
    There is message "G Code Error GCode Abborted", here attached the picture.

    Anyone ever got same problem in this forum, please share here, what can be the cause of this error.

    Thank you in advance..

    ASM




    Group: DynoMotion Message: 15251 From: ARIEF SUSANTO Date: 12/16/2017
    Subject: Re: G Code Error...Aborted
    Attachments :
      Hi Tom,

      Many Thanks for all your advices,
      Before change anythings on the motor configuration, I make some test and I try to run GCode on the KMotion menu, instead of KMotionCNC, attached here some picture.
      On KMotion menu, the GCode was working well and I saw the servo motor turn, But when I run the GCode on the KMotionCNC, the message " G Code error" appear. 
      Is there any file or some configuration on the KMotionCNC need some setting?

      Anyway, I will change the configuration of the motor set up and the C program follow your advice first, I will let you know the result of the test.

      Thanks again for all your assist,

      Regards,

      ASM

      2017-12-16 0:58 GMT+07:00 Tom Kerekes tk@... [DynoMotion] <DynoMotion@yahoogroups.com>:
       

      Hi ASM,

      The Spindle should not normally be part of the coordinated motion system.  Also because you are only writing to a DAC to control it you should not enable the Axis as a Servo.  The encoder position will be maintained whether the Axis is enabled or not.

      so change:

          EnableAxis(3);

          DefineCoordSystem(0,-1,2,3);

      to:

          DefineCoordSystem(0,-1,2,-1);

      On a minor note it is usually best to have positive P Gain.  Make your P gain positive and if necessary change the OutputGain to the opposite sign (-1 or +1).

      Instead of photos of screens you can capture the screen image by alt-printscreen.  Then paste into Paint.exe and save as a *.png file.

      HTH
      Regards
      TK






      On 12/14/2017 5:31 PM, ARIEF SUSANTO sst.arief@... [DynoMotion] wrote:
       
      Hi TK,

      Thank you for response..
      The configuration of Dynomotion that I use for my old lathe is : KFLOP+KANALOG+KONNECT.
      In initialization C program, the axis X on Channel 0, the axis Z on channel 2, and channel 3 for the spindle. Here attached the initialization file.
      I do some modification on the C program, to make the machine able to be operated by external button for do axis jog, spindle jog, and also with MPG.
      Probably I do some mistake on C program, sorry Im not a real programmer😁 . But so far with this initialization C program, all the axis can be move.
      Only the error appear when test with G code..

      Very appreciate for your assist..

      Regards,

      ASM


      2017-12-15 5:47 GMT+07:00 Tom Kerekes tk@... [DynoMotion] <DynoMotion@yahoogroups.com>:
       

      Hi ASM,

      I don't see any attached picture.

      Are all the axes defined in your Coordinate System Enabled?

      What do you have as your DefineCoordSystem() in your Initialization C Program.

      Regards
      TK





      On 12/13/2017 11:44 PM, ARIEF SUSANTO sst.arief@... [DynoMotion] wrote:
       
      On Dec 14, 2017 2:41 PM, "ARIEF SUSANTO" <sst.arief@...> wrote:

      Hi,
      I use dynomotion for replace the CNC controller of my old cnc Lathe.
      I still use the old servo motor and the spindle driver.
      From this forum, I learn a lot of things, and do some research until I can move the X and Z axis and also the spindle. All is working in manual mode, means it work well with click the Jog button.

      But I got problem when try to move with program, with G code. Also when I type, for example G0 X10 and click send on the lower screen of Kmotioncnc.
      There is message "G Code Error GCode Abborted", here attached the picture.

      Anyone ever got same problem in this forum, please share here, what can be the cause of this error.

      Thank you in advance..

      ASM





      Group: DynoMotion Message: 15252 From: TK A2 Date: 12/16/2017
      Subject: Re: G Code Error...Aborted
      Hi ASM,

      In KMotionCNC KFLOP is disconnected and the axes are disabled. Was KFLOP connected and the axes enabled (green DROs) when you tried to run the GCode?

      Did you configure all the settings in KMotionCNC Tool Setup?

      Regards 
      TK

      On Dec 16, 2017, at 2:48 AM, ARIEF SUSANTO sst.arief@... [DynoMotion] <DynoMotion@yahoogroups.com> wrote:

       

      Hi Tom,

      Many Thanks for all your advices,
      Before change anythings on the motor configuration, I make some test and I try to run GCode on the KMotion menu, instead of KMotionCNC, attached here some picture.
      On KMotion menu, the GCode was working well and I saw the servo motor turn, But when I run the GCode on the KMotionCNC, the message " G Code error" appear. 
      Is there any file or some configuration on the KMotionCNC need some setting?

      Anyway, I will change the configuration of the motor set up and the C program follow your advice first, I will let you know the result of the test.

      Thanks again for all your assist,

      Regards,

      ASM

      2017-12-16 0:58 GMT+07:00 Tom Kerekes tk@... [DynoMotion] <DynoMotion@yahoogroups.com>:
       

      Hi ASM,

      The Spindle should not normally be part of the coordinated motion system.  Also because you are only writing to a DAC to control it you should not enable the Axis as a Servo.  The encoder position will be maintained whether the Axis is enabled or not.

      so change:

          EnableAxis(3);

          DefineCoordSystem(0,-1,2,3);

      to:

          DefineCoordSystem(0,-1,2,-1);

      On a minor note it is usually best to have positive P Gain.  Make your P gain positive and if necessary change the OutputGain to the opposite sign (-1 or +1).

      Instead of photos of screens you can capture the screen image by alt-printscreen.  Then paste into Paint.exe and save as a *.png file.

      HTH
      Regards
      TK






      On 12/14/2017 5:31 PM, ARIEF SUSANTO sst.arief@... [DynoMotion] wrote:
       
      Hi TK,

      Thank you for response..
      The configuration of Dynomotion that I use for my old lathe is : KFLOP+KANALOG+KONNECT.
      In initialization C program, the axis X on Channel 0, the axis Z on channel 2, and channel 3 for the spindle. Here attached the initialization file.
      I do some modification on the C program, to make the machine able to be operated by external button for do axis jog, spindle jog, and also with MPG.
      Probably I do some mistake on C program, sorry Im not a real programmer😁 . But so far with this initialization C program, all the axis can be move.
      Only the error appear when test with G code..

      Very appreciate for your assist..

      Regards,

      ASM


      2017-12-15 5:47 GMT+07:00 Tom Kerekes tk@... [DynoMotion] <DynoMotion@yahoogroups.com>:
       

      Hi ASM,

      I don't see any attached picture.

      Are all the axes defined in your Coordinate System Enabled?

      What do you have as your DefineCoordSystem() in your Initialization C Program.

      Regards
      TK





      On 12/13/2017 11:44 PM, ARIEF SUSANTO sst.arief@... [DynoMotion] wrote:
       
      On Dec 14, 2017 2:41 PM, "ARIEF SUSANTO" <sst.arief@...> wrote:

      Hi,
      I use dynomotion for replace the CNC controller of my old cnc Lathe.
      I still use the old servo motor and the spindle driver.
      From this forum, I learn a lot of things, and do some research until I can move the X and Z axis and also the spindle. All is working in manual mode, means it work well with click the Jog button.

      But I got problem when try to move with program, with G code. Also when I type, for example G0 X10 and click send on the lower screen of Kmotioncnc.
      There is message "G Code Error GCode Abborted", here attached the picture.

      Anyone ever got same problem in this forum, please share here, what can be the cause of this error.

      Thank you in advance..

      ASM





      <GCode on KMotion CNC.png>
      <GCode on KMotion.png>
      Group: DynoMotion Message: 15287 From: ARIEF SUSANTO Date: 1/3/2018
      Subject: Re: G Code Error...Aborted

      Hi Tom,

      Just came again to the workshop after take a long holiday..
      After check all the configuration on the KMotionCNC Tool Setup, I found there was wrong setting on  the page 'Trajectory Planner'.
      The Cnts/inch of the axis A, B, and C was "0", this cause the message "G Code Error " appear.
      After change it to >0, the error disappear.

      Thanks for advice,

      Regards,

      ASM

      On Dec 17, 2017 12:01 AM, "TK A2 tk@... [DynoMotion]" <DynoMotion@yahoogroups.com> wrote:
       

      Hi ASM,


      In KMotionCNC KFLOP is disconnected and the axes are disabled. Was KFLOP connected and the axes enabled (green DROs) when you tried to run the GCode?

      Did you configure all the settings in KMotionCNC Tool Setup?

      Regards 
      TK

      On Dec 16, 2017, at 2:48 AM, ARIEF SUSANTO sst.arief@... [DynoMotion] <DynoMotion@yahoogroups.com> wrote:

       

      Hi Tom,

      Many Thanks for all your advices,
      Before change anythings on the motor configuration, I make some test and I try to run GCode on the KMotion menu, instead of KMotionCNC, attached here some picture.
      On KMotion menu, the GCode was working well and I saw the servo motor turn, But when I run the GCode on the KMotionCNC, the message " G Code error" appear. 
      Is there any file or some configuration on the KMotionCNC need some setting?

      Anyway, I will change the configuration of the motor set up and the C program follow your advice first, I will let you know the result of the test.

      Thanks again for all your assist,

      Regards,

      ASM

      2017-12-16 0:58 GMT+07:00 Tom Kerekes tk@... [DynoMotion] <DynoMotion@yahoogroups.com>:
       

      Hi ASM,

      The Spindle should not normally be part of the coordinated motion system.  Also because you are only writing to a DAC to control it you should not enable the Axis as a Servo.  The encoder position will be maintained whether the Axis is enabled or not.

      so change:

          EnableAxis(3);

          DefineCoordSystem(0,-1,2,3);

      to:

          DefineCoordSystem(0,-1,2,-1);

      On a minor note it is usually best to have positive P Gain.  Make your P gain positive and if necessary change the OutputGain to the opposite sign (-1 or +1).

      Instead of photos of screens you can capture the screen image by alt-printscreen.  Then paste into Paint.exe and save as a *.png file.

      HTH
      Regards
      TK






      On 12/14/2017 5:31 PM, ARIEF SUSANTO sst.arief@... [DynoMotion] wrote:
       
      Hi TK,

      Thank you for response..
      The configuration of Dynomotion that I use for my old lathe is : KFLOP+KANALOG+KONNECT.
      In initialization C program, the axis X on Channel 0, the axis Z on channel 2, and channel 3 for the spindle. Here attached the initialization file.
      I do some modification on the C program, to make the machine able to be operated by external button for do axis jog, spindle jog, and also with MPG.
      Probably I do some mistake on C program, sorry Im not a real programmer😁 . But so far with this initialization C program, all the axis can be move.
      Only the error appear when test with G code..

      Very appreciate for your assist..

      Regards,

      ASM


      2017-12-15 5:47 GMT+07:00 Tom Kerekes tk@... [DynoMotion] <DynoMotion@yahoogroups.com>:
       

      Hi ASM,

      I don't see any attached picture.

      Are all the axes defined in your Coordinate System Enabled?

      What do you have as your DefineCoordSystem() in your Initialization C Program.

      Regards
      TK





      On 12/13/2017 11:44 PM, ARIEF SUSANTO sst.arief@... [DynoMotion] wrote:
       
      On Dec 14, 2017 2:41 PM, "ARIEF SUSANTO" <sst.arief@...> wrote:

      Hi,
      I use dynomotion for replace the CNC controller of my old cnc Lathe.
      I still use the old servo motor and the spindle driver.
      From this forum, I learn a lot of things, and do some research until I can move the X and Z axis and also the spindle. All is working in manual mode, means it work well with click the Jog button.

      But I got problem when try to move with program, with G code. Also when I type, for example G0 X10 and click send on the lower screen of Kmotioncnc.
      There is message "G Code Error GCode Abborted", here attached the picture.

      Anyone ever got same problem in this forum, please share here, what can be the cause of this error.

      Thank you in advance..

      ASM





      <GCode on KMotion CNC.png>
      <GCode on KMotion.png>